home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / image / c2jpg120.zip / EXAMPLES.TXT < prev    next >
Text File  |  1996-05-02  |  2KB  |  43 lines

  1. This file shows examples on how you could call CONV2JPG from batch files.
  2.  
  3. -----------------------------------------------------------------------------
  4. This example converts all the .gif images in the images directory and creates 
  5. JPEG files in the same directory. All the JPEG files will fit into a 512x512 
  6. window. The compression ratio is 150 which is a quite hard compression.
  7.  
  8. EXAMPLE1.BAT:
  9. for %%f in (e:\images\*.gif) do call CONV2JPG %%f e:\images\*.jpg 150 512 
  10. :END
  11.  
  12. -----------------------------------------------------------------------------
  13. This converts all the graphic files in a directory, no matter what fileformat 
  14. they originally have, to JPEG files in the jpegs directory using the original 
  15. x/y size. It's using the default compression ratio of 50.
  16.  
  17. EXAMPLE2.BAT:
  18. for %%f in (e:\images\*.*) do call CONV2JPG %%f e:\images\jpegs\*.jpg
  19. :END
  20.  
  21. -----------------------------------------------------------------------------
  22. This example shows how to use the CONV2JPG to resize and REPLACE the 
  23. original jpeg files in the jpegs directory. The files will all fit within an
  24. 100x100 window and have a compression ratio of 150. The orginal files will
  25. be replaced and lost. There is no way to get the original files back.
  26.  
  27. EXAMPLE3.BAT:
  28. for %%f in (e:\images\jpegs\*.jpg) do call CONV2JPG %%f %%f 150 100
  29. :END
  30.  
  31. -----------------------------------------------------------------------------
  32. This example shows how to use the CONV2JPG as a drag&drop application
  33. from for example the File Manager. Create a  New Program Item in a Program 
  34. Manager Group which calls this batch-file. This example creates a JPEG copy 
  35. with the origin image in the output directory. It's using the a compression 
  36. ratio of 150. All the JPEG files will fit into a 100x100 window.
  37.  
  38. EXAMPLE4.BAT:
  39. CONV2JPG %1 e:\images\jpegs\*.jpg 150 100
  40. :END
  41.  
  42. /end of file
  43.